home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / mklib.hpux < prev    next >
Text File  |  1998-12-15  |  1KB  |  47 lines

  1. #!/bin/sh
  2.  
  3. # Make an HPUX shared library
  4. # contributed by Jan Springer (springer@nessi.informatik.hab-weimar.de)
  5.  
  6. #--identification------------------------------------------------------
  7.  
  8. # $Id: mklib.hpux,v 1.2 1997/10/21 23:32:31 brianp Exp $
  9.  
  10. # $Log: mklib.hpux,v $
  11. # Revision 1.2  1997/10/21 23:32:31  brianp
  12. # now takes major and minor version arguments
  13. #
  14.  
  15. #--common--------------------------------------------------------------
  16.  
  17. # Usage:  mklib libname major minor file.o ...
  18. #
  19. # First argument is name of output library (LIBRARY)
  20. # Second arg is major version number (MAJOR)
  21. # Third arg is minor version number (MINOR)
  22. # Rest of arguments are object files (OBJECTS)
  23.  
  24. LIBRARY=$1
  25. shift 1
  26.  
  27. MAJOR=$1
  28. shift 1
  29.  
  30. MINOR=$1
  31. shift 1
  32.  
  33. OBJECTS=$*
  34.  
  35. #--platform------------------------------------------------------------
  36.  
  37. ld -b -o ${LIBRARY} ${OBJECTS}
  38.  
  39. echo "Be sure to set the LPATH and SHLIB_PATH variables as shown in mklib.hpux"
  40.  
  41.  
  42. # Comments:
  43. # You'll need to put the following setenv's in your .cshrc or .login file:
  44. #
  45. #   setenv LPATH .:/lib/pa1.1:/usr/lib/pa1.1:/lib:/usr/lib:/usr/lib/X11R5:/usr/lib/Motif1.2:/usr/local/xview3.2/lib:/usr/local/lib:/usr/local/lib/X11
  46. #   setenv SHLIB_PATH ${LPATH}
  47.